import 'dart:convert';

class CooperationListMo {
  CooperationListMo({
    this.totalPage,
    this.data,
    this.totalCount,
    this.pageSize,
    this.pageNum,
  });

  int? totalPage;
  List<CooperationListItemMo>? data;
  int? totalCount;
  int? pageSize;
  int? pageNum;

  factory CooperationListMo.fromRawJson(String str) =>
      CooperationListMo.fromJson(json.decode(str));

  factory CooperationListMo.fromJson(Map<String, dynamic> json) {
    return CooperationListMo(
      totalPage: json["totalPage"],
      data: List<CooperationListItemMo>.from(
          json["data"].map((x) => CooperationListItemMo.fromJson(x))),
      totalCount: json["totalCount"],
      pageSize: json["pageSize"],
      pageNum: json["pageNum"],
    );
  }
}

class CooperationListItemMo {
  CooperationListItemMo({
    this.targetCode,
    this.id,
    this.actualPageView,
    this.companyName,
    this.targetCodeName,
    this.provinceName,
    this.companyLogoUrl,
    this.province,
  });

  String? targetCode;
  int? id;
  int? actualPageView;
  String? companyName;
  String? targetCodeName;
  String? provinceName;
  String? companyLogoUrl;
  int? province;

  factory CooperationListItemMo.fromRawJson(String str) =>
      CooperationListItemMo.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory CooperationListItemMo.fromJson(Map<String, dynamic> json) =>
      CooperationListItemMo(
        targetCode: json["targetCode"],
        id: json["id"],
        actualPageView: json["actualPageView"],
        companyName: json["companyName"],
        targetCodeName: json["targetCodeName"],
        provinceName: json["provinceName"],
        companyLogoUrl: json["companyLogoUrl"],
        province: json["province"],
      );

  Map<String, dynamic> toJson() => {
        "targetCode": targetCode,
        "id": id,
        "actualPageView": actualPageView,
        "companyName": companyName,
        "targetCodeName": targetCodeName,
        "provinceName": provinceName,
        "companyLogoUrl": companyLogoUrl,
        "province": province,
      };
}
